package com.byzk.p2p.admin.web.dao;

import java.util.List;
import java.util.Map;

import com.byzk.p2p.admin.web.dto.Article;
import com.byzk.p2p.admin.web.dto.ArticleType;
import com.byzk.p2p.admin.web.vo.ArticleVo;

/**
 * 文章 DAO
 * 
 * @author LiuJY
 *
 */
public interface ArticleDao {
	public Integer count(Map<String,Object> queryMap);

	public List<ArticleVo> articleList(Map<String,Object> queryMap);

	public ArticleVo getArticleById(Integer id);

	public Integer insert(Article article);

	public Integer update(Article article);

	public Integer delete(Integer id);
	
	public List<Article> list6News(Integer typeId);
	
	public List<Article> listNewsByType(Map<String,Object> params);
	
	public List<ArticleType> articleTypeList();
	
	public Article getAdjacentArticle(Map<String,Object> queryMap);
	
	public List<ArticleVo> createTimeList();

	public Integer getIdByType(String articleType);
	
}
